<div id="depSelectDialogContent" class="depSelectDialogContent">
  <div ms-controller="dpeSelect" id="dpeSelect">
    <form class="form-inline search" ms-submit="@handleSubmit">
      <div class="form-group">
        <label for="searchInputForDep">拼音码或名称：</label>
        <input type="text" id="searchInputForDep" class="form-control" ms-duplex="@searchInput" data-duplex-changed="@handleSearch"
          ms-keydown="@handleKeydown" maxlength="10" />
      </div>
      <div class="btn-group">
        <button type="button" ms-click="@sureDesp" class="btn btn-primary">确定</button>
        <button type="button" ms-click="@hideDialog" class="btn btn-default">取消</button>
      </div>

      <div class="clear"></div>
    </form>
    <table id="despTable" class="table table-bordered">
      <thead>
        <tr>
          <th>科室代码</th>
          <th>科室名称</th>
          <th>拼音码</th>
          <th>账户ID</th>
        </tr>
      </thead>
      <tbody>
        <tr ms-if="@deps.length===0">
          <th colspan="4" align="center">没有查到任何数据</th>
        </tr>
        <tr ms-for="($index,el) in @deps" ms-class="@chooseIndex===$index?'actived':''" ms-click="@handleClick($index)" ms-dblclick="@handleDBClick($index)">
          <td>{{el.Ksdm}}</td>
          <td>{{el.Ksmc}}</td>
          <td>{{el.Pysx}}</td>
          <td>{{el.DeptAccountID}}</td>
        </tr>
      </tbody>
    </table>
    <!-- 分页插件 -->
    <div id="page"></div>
    <div class="clear"></div>
  </div>
</div>